//
//  HWXiaoHaoableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/11/14.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWXiaoHaoableViewCell.h"
@interface HWXiaoHaoableViewCell()
@property(strong,nonatomic)UILabel *miaoshuLabel1;
@property(strong,nonatomic)UILabel *miaoshuLabel2;
@property(strong,nonatomic)UILabel *miaoshuLabel3;
@end


@implementation HWXiaoHaoableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier    {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
        
    }
    
    return  self;
}

- (void)setupUI {
    
    
       CGFloat kuaduW  =  kScreenW /4;
       UILabel   *nameLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(kuaduW, 0, kuaduW, 40)];
       nameLabel1.text  = @"全职主攻";
       nameLabel1.font = [UIFont systemFontOfSize:14];
       nameLabel1.textColor = RGB(51, 51, 51);
      // nameLabel.backgroundColor = [UIColor redColor];
       nameLabel1.textAlignment =  NSTextAlignmentCenter;
       self.miaoshuLabel1 = nameLabel1;
       nameLabel1.backgroundColor = RGB(233,241, 255);
       [self.contentView  addSubview:nameLabel1];
    
    
  
        UILabel   *nameLabel2 = [[UILabel alloc]initWithFrame:CGRectMake(kuaduW*2, 0, kuaduW, 40)];
        nameLabel2.text  = @"wap";
        nameLabel2.font = [UIFont systemFontOfSize:14];
        nameLabel2.textColor = RGB(51, 51, 51);
       nameLabel2.backgroundColor = RGB(233,241, 255);
       nameLabel2.textAlignment =  NSTextAlignmentCenter;
        self.miaoshuLabel2 = nameLabel2;
       // nameLabel.backgroundColor = [UIColor redColor];
        [self.contentView  addSubview:nameLabel2];
    
    
         UILabel   *nameLabel3 = [[UILabel alloc]initWithFrame:CGRectMake(kuaduW*3, 0, kuaduW, 40)];
         nameLabel3.text  = @"50级";
         nameLabel3.font = [UIFont systemFontOfSize:14];
         nameLabel3.textColor = RGB(51, 51, 51);
         nameLabel3.textAlignment =  NSTextAlignmentCenter;
        nameLabel3.backgroundColor = RGB(233,241, 255);
         self.miaoshuLabel3 = nameLabel3;
        // nameLabel.backgroundColor = [UIColor redColor];
         [self.contentView  addSubview:nameLabel3];
         
       UIView *shuxingView = [[UIView alloc]initWithFrame:CGRectMake(kuaduW*2, 0, 1, 40)];
       shuxingView.backgroundColor = RGB(255, 255, 255);
    
        [self.contentView addSubview:shuxingView];
    
      UIView *shuxingView1 = [[UIView alloc]initWithFrame:CGRectMake(kuaduW*3, 0, 1, 40)];
       shuxingView1.backgroundColor = RGB(255, 255, 255);
    
        [self.contentView addSubview:shuxingView1];
    
       
       
     
    
    
    
    
        
    
}


-(void)setModel:(HWYouXixiaoHaoModel *)model {
    
    
    self.miaoshuLabel1.text = [NSString stringWithFormat:@"%@",model.gname];
    self.miaoshuLabel2.text = [NSString stringWithFormat:@"%@",model.role_name];
    self.miaoshuLabel3.text = [NSString stringWithFormat:@"%@",model.level];
    
    
}

@end
